package cn.ecnu.service.impl;

import cn.ecnu.entity.User;
import cn.ecnu.mapper.UserMapper;
import cn.ecnu.service.UserInfoService;
import cn.ecnu.vo.ResetVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class UserInfoServiceImpl implements UserInfoService {

    private UserMapper mapper;

    @Autowired
    public UserInfoServiceImpl(UserMapper mapper) {
        this.mapper = mapper;
    }

    @Override
    public int updateUser(ResetVo resetVo) {
        return mapper.updateUser(resetVo);
    }

    @Override
    public List<User> getUserList() {
        return mapper.getUserList();
    }
}
